<?php
include_once('connection/connection.php');
$id=$_REQUEST['subID'];
$query_rainfall_main="select * from tbl_dtls_rainfall_details where id='$id'";
$result_rainfall_main=mysql_query($query_rainfall_main);
$row_rainfall_main=mysql_fetch_array($result_rainfall_main);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<form action="edit_rainfall_detail_logic.php" method="post">
<table width="743" border="0">
              
              <tr>
                <td width="155"></td>
                <td colspan="3"></td>
              </tr>
              <tr>
                <td bgcolor="#F0F0F0"><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Year </b></font></td>
                <td colspan="3" bgcolor="#F0F0F0"><input type="text" name="year" value="<?php echo $row_rainfall_main['year'];?>" readonly="readonly" />
				<input type="hidden" name="id" value="<?php echo $id;?>" />
				<input type="hidden" name="district" value="<?php echo $row_rainfall_main['district_id'];?>" />
				<input type="hidden" name="block" value="<?php echo $row_rainfall_main['block_id'];?>" />
				</td>
              </tr>
              <tr bgcolor="#DDDDDD">
                <td><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Annual Rainfall </b></font></td>
                <td colspan="3"><input type="text" name="Annual_Rainfall" value="<?php echo $row_rainfall_main['Annual_Rainfall'];?>" /></td>
              </tr>
              <tr bgcolor="#F0F0F0">
                <td><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Annual Rainydays </b></font></td>
                <td colspan="3"><input type="text" name="Annual_Rainydays" value="<?php echo $row_rainfall_main['Annual_Rainydays'];?>" /></td>
              </tr>
              <tr bgcolor="#DDDDDD">
                <td><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Heighest Rainfall </b></font></td>
                <td colspan="3"><input type="text" name="Heighest_Rainfall" value="<?php echo $row_rainfall_main['Heighest_Rainfall'];?>" /></td>
              </tr>
              <tr bgcolor="#F0F0F0">
                <td><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>On Date </b></font></td>
                <td width="19"><input type="text" name="On_Date" value="<?php echo $row_rainfall_main['On_Date'];?>" size="10" readonly="readonly" /> </td>
                <td width="3"><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;</font></td>
                <td width="478">&nbsp;</td>
              </tr>
              <tr bgcolor="#DDDDDD">
                <td>&nbsp;</td>
                <td colspan="3"><input type="submit" name="submit" value="submit" /></td>
              </tr>
</table>
</form>
</body>
</html>
